package com.atguigu.lease.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix = "jwt")
public class JwtProperties {


    private String adminSecretKey; // 设置密钥
    private long adminTtl;// 设置过期时间
    private String adminTokenName;// 设置前端传来的令牌名称

    private String appSecretKey;
    private long appTtl;
    private String appTokenName;
}
